import request from '@/utils/request'

// 从配置中获取业务的地址
import { baseUrlConfig } from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl

export interface PageListType {
  pageNum?: number
  pageSize?: number
  condition: {
    serviceName: string
    isDisable:string
    terminal:string
    serviceType:string
    order:string[]
  }
}

export interface SearchListType {
  deviceId: string
  problemType: string
  organ: string
}

// // 获取分页列表
export const problemPageList: (data: PageListType) => Promise<[]> = (
  data: PageListType
) => {
  return request({
    url: basePath + '/keynote/resource/find/page',
    method: 'post',
    data
  })
}

// // 导出
export const resourceExport = (data: FilterDataType) => {
  return request({
    url: basePath + '/keynote/resource/export',
    method: 'post',
    responseType: 'blob',
    data
  })
}
